<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tags" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<h2 align="center">Add a new employee</h2>
	<form:form method="POST" modelAttribute="employee" >
		<table align="center">
			<tr>
				<td>Employee name:</td>
				<td width="200px"><form:input type="text" name="employeeName" path="name" /></td>
			</tr>
			<tr>
				<td>Address:</td>
				<td width="200px"><input type="text" name="address"/></td>
			</tr>
			<tr>
				<td>Level:</td>
				<td width="200px"><input type="text" name="level"/></td>
			</tr>
			<tr>
				<td><button type="submit">Submit</button></td>
			</tr>
		</table>
	</form:form>
	<tags:addedEmployee employee="${employee}"/>
	<spring:message code="a"></spring:message>
</body>
</html>